Linking Capabilities

Hello,

I am in charge of create a script that could perform multi-linking in DOORS using the object ID attribute.
The overall goal, is to be able to do bulk linking between modules using the "Object ID" attribute. This could be done by adding a column (attribute) in the source module with all the IDs of the target module that we want to link it with. 

I hope someone knows an idea.

Thanks in advance.


BrianAguilar - Thu Aug 23 18:26:51 EDT 2018

Re: Linking Capabilities
PekkaMakinen - Fri Aug 24 00:04:45 EDT 2018

DOORS has this ability kind of built-in, see the functionality in Link / Advanced / Link by Attribute. It uses the Absolute Number attribute and the corresponding value in a text attribute to do the linking, for help see https://www.ibm.com/support/knowledgecenter/en/SSYQBZ_9.5.2/com.ibm.doors.requirements.doc/topics/t_linkingbyattribute.html

Otherwise check the DOORS DXL Library - in a DOORS module open menu item Tools / DXL Library and open "Some example programs which ....". There you find two further scripts "Example to link DOORS modules according to a Foreign Key" and "...two Foreign Keys" which allow you to use also other attribute values for linking than Absolute Number. The DXL scripts are available for study and modification under your DOORS installation directory lib\dxl\example as "LinkByKey.dxl" and "LinkByPairs.dxl" (and in my 9.6.0 installation theý are unencrypted).

Re: Linking Capabilities
BrianAguilar - Fri Aug 24 08:52:09 EDT 2018

PekkaMakinen - Fri Aug 24 00:04:45 EDT 2018

DOORS has this ability kind of built-in, see the functionality in Link / Advanced / Link by Attribute. It uses the Absolute Number attribute and the corresponding value in a text attribute to do the linking, for help see https://www.ibm.com/support/knowledgecenter/en/SSYQBZ_9.5.2/com.ibm.doors.requirements.doc/topics/t_linkingbyattribute.html

Otherwise check the DOORS DXL Library - in a DOORS module open menu item Tools / DXL Library and open "Some example programs which ....". There you find two further scripts "Example to link DOORS modules according to a Foreign Key" and "...two Foreign Keys" which allow you to use also other attribute values for linking than Absolute Number. The DXL scripts are available for study and modification under your DOORS installation directory lib\dxl\example as "LinkByKey.dxl" and "LinkByPairs.dxl" (and in my 9.6.0 installation theý are unencrypted).

Thank you, I will take a look.

Have a nice day.

Re: Linking Capabilities
BrianAguilar - Wed Aug 29 18:15:03 EDT 2018

PekkaMakinen - Fri Aug 24 00:04:45 EDT 2018

DOORS has this ability kind of built-in, see the functionality in Link / Advanced / Link by Attribute. It uses the Absolute Number attribute and the corresponding value in a text attribute to do the linking, for help see https://www.ibm.com/support/knowledgecenter/en/SSYQBZ_9.5.2/com.ibm.doors.requirements.doc/topics/t_linkingbyattribute.html

Otherwise check the DOORS DXL Library - in a DOORS module open menu item Tools / DXL Library and open "Some example programs which ....". There you find two further scripts "Example to link DOORS modules according to a Foreign Key" and "...two Foreign Keys" which allow you to use also other attribute values for linking than Absolute Number. The DXL scripts are available for study and modification under your DOORS installation directory lib\dxl\example as "LinkByKey.dxl" and "LinkByPairs.dxl" (and in my 9.6.0 installation theý are unencrypted).

Hi @PekkaMakinen 2c62fe98-76da-481f-be77-55155704a095,

Do you know if this tool can create multiple links by attribute?
I mean, can the object in the attribute (source module) contains more than one object from the target module?

Re: Linking Capabilities
PekkaMakinen - Thu Aug 30 00:18:30 EDT 2018

BrianAguilar - Wed Aug 29 18:15:03 EDT 2018

Hi @PekkaMakinen 2c62fe98-76da-481f-be77-55155704a095,

Do you know if this tool can create multiple links by attribute?
I mean, can the object in the attribute (source module) contains more than one object from the target module?

Depends on which tool you select, this behaviour is typically document somehow, somewhere

Link by Attribute help page:

In the source module, the attribute that you use for linking must be of type Text. If it contains more than one absolute number, each number must be on a separate line.

And the LinkByKey code comment:

  Source reference attribute:  The String or Text attribute of objects in the 
  current module that lists the keys of the objects in the target module, 
  separated by commas, semi-colons or new lines (but don't mix new lines 
  with the others as I haven't got the pattern to work properly like this yet!)

 

Re: Linking Capabilities
BrianAguilar - Thu Aug 30 13:13:14 EDT 2018

PekkaMakinen - Thu Aug 30 00:18:30 EDT 2018

Depends on which tool you select, this behaviour is typically document somehow, somewhere

Link by Attribute help page:

In the source module, the attribute that you use for linking must be of type Text. If it contains more than one absolute number, each number must be on a separate line.

And the LinkByKey code comment:

  Source reference attribute:  The String or Text attribute of objects in the 
  current module that lists the keys of the objects in the target module, 
  separated by commas, semi-colons or new lines (but don't mix new lines 
  with the others as I haven't got the pattern to work properly like this yet!)

 

Thank you again!